package com.cqan.message.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cqan.account.entity.User;
import com.cqan.message.dao.MessageDao;
import com.cqan.message.entity.Message;
import com.cqan.message.service.MessageService;
import com.cqan.orm.Page;
import com.cqan.service.impl.EntityServiceImpl;

@Service("messageService")
public class MessageServiceImpl extends
		EntityServiceImpl<Message, Long, MessageDao> implements MessageService {

	@Override
	@Autowired
	public void setEntityDao(MessageDao entityDao) {
		this.entityDao = entityDao;
	}

	@Override
	public Page<Message> getInboxMessage(Page<Message> page, User user) {
		
		return entityDao.getInboxMessage(page,user);
	}

}
